using MicroMsg.Common.Event;
using System;
using System.Collections.Generic;
namespace MicroMsg.Storage
{
	public class BottleContactStorage : StorageMemory<BottleContact, string>
	{
		public BottleContactStorage() : base((BottleContact b) => b.strUserName)
		{
		}
		public List<BottleContact> getListByShortName(string strShortName)
		{
			return base.search((BottleContact bottleContact_0) => bottleContact_0.strUserName == strShortName, -1, -1);
		}
		public bool delContact(string bottleInfo)
		{
			return base.method_4((BottleContact bottleContact_0) => bottleContact_0.strUserName == bottleInfo);
		}
		public override void notify(int operation, BottleContact item)
		{
			EventCenter.postCombineEvent(EventConst.ON_STORAGE_BOTTLECONTACT_ADD + operation, item);
		}
	}
}
